package com.itheima.demo.Demo06.CS;

public class tt {
    public static void main(String[] args) {
        System.out.println("start");
        T t=new T();
        Thread T=new Thread(t,"小草");

        T.start();
        for (int i = 0; i <=20 ; i++) {
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("小明"+" "+i);

        }
        System.out.println("end");
    }
}
